package com.glls.order.feign.fallback;

import com.glls.common.vo.OrderVo;
import com.glls.order.feign.StockApi;
import org.springframework.stereotype.Component;


@Component
public class StockApiFallBack implements StockApi {
    @Override
    public int updateStock(OrderVo order) {
        return -1;
    }

    @Override
    public String testStock() {
        return "库存服务繁忙，请稍后访问";
    }
}
